window.onload=function (){
    this.getradio();
    this.getradiobanner();
}


 function  getradio(){
     $ajax({
         url:hotradio,
         method:"get",
         success:function (e){
             if(e.code===200){
                 console.log(e);
                  let result=e.djRadios;
                  const oRadioUl=document.querySelector('.radio-sublist');
                  let str='';
                  result.forEach(item=>{
                      str+=`<li class="start-sublist-items">
                           <div class="start-pic">
                               <a href="" class="start-link">
                                   <img src="${item.picUrl}" alt="" class="start-link-img">
                                   <i class="icon-bg"></i>
                               </a>
                           </div>
                           <div class="start-content">
                               <p class="start-con-info"><a href="" class="start-con-author radio-a">${item.name}</a></p>
                           </div>
                       </li>`

                  })
                 oRadioUl.innerHTML=str;
             }
         }
     })
}


function  getradiobanner(){
    $ajax({
        url:radiobanner,
        method:"get",
        success:function (e){
            console.log(e);
        }
    })
}